import axios from '../utils/request.js'
//发布文章
export function addArticle(params){
    return axios.post('/api/add_article',params)
}
//获取七牛云上传token
export function getUploadToken(){
    return axios.get('/upload/token')
}
//上传七牛
export function uploadQiniu(formData){
    return axios.post('https://upload-z1.qiniup.com',formData)
}